<%@page isELIgnored="false" pageEncoding="UTF-8" contentType="text/html; UTF-8" %>

<script type="text/javascript">


    $(function () {
        $("#Table").datagrid({
            toolbar:"#myToolbar",
            title:"用户",
            url:"${pageContext.request.contextPath}/user/fenye",
            pagination:true,//分页查询
            loadMsg:"拼命加载中,请稍等",
            pageSize:10,
            pageList:[10,20],
            onDblClickRow:function(rowIndex,rowData){//给修改设置一个函数
                openupdate(rowData);//这是函数
            },
            columns:[[
                {checkbox:true,field:"dfgfd"},//随便写但是一定要有
                {field:"userId",title:"用户ID"},
                {field:"userTelphone",title:"用户电话"},
                {field:"userPassword",title:"用户密码"},
                {field:"userImage",title:"用户照片"},
                {field:"userNickname",title:"用户上师"},
                {field:"userName",title:"用户姓名"},
                {field:"userSex",title:"用户性别"},
                {field:"userAutograph",title:"yyy"},
                {field:"userProvince",title:"省份"},
                {field:"userCity",title:"城市"},
                {field:"guruId",title:"用户id"},
                {field:"userStatus",title:"用户状态"},
                {field:"createDate",title:"创建时间"},
                {title:"操作" ,field:"cx",
                    44:function(value,rowData,rowIndex){
                        return "<a href='href'>操作</a>" ;
                    }
                },
            ]]
        })
    })



</script>



<%--我的表格--%>
<table id="Table"></table>
